<?php

include "connect.php";
$reg_no=$_POST['reg_no'];
$roll_no=$_POST['roll_no'];
$class_id=$_POST['class_id'];
$year_id=$_POST['year_id'];
$session_id=$_POST['session_id'];
$diploma_status=$_POST['diploma_status'];


$sq=mysql_query("select * From student_academic where roll_no='$roll_no'");
while ($row = mysql_fetch_array($sq)) {
$sql=mysql_query("UPDATE student_academic SET reg_no='$reg_no',roll_no='$roll_no',class_id='$class_id',year_id='$year_id',session_id='$session_id',diploma_status='$diploma_status'
where roll_no='$roll_no'");



}
header("location:update_student_academic_success.php");
?>